<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="jq/jquery-1.11.0.min.js"></script>
</head>

<body>
    <!-- jq简化了ajax的语法 所以是配合jq用的ajax -->
    <button id="btnGet">发起不带参数的get请求</button>
    <script>
        $(function () {
            $('#btnGet').on('click', function () {
                $.get('http://www.liulongbin.top:3006/api/getbooks', function (res) {
                    console.log(res);
                })
            })
        })
    </script>
</body>

</html>